import request from "@/utils/request";

// 查询司机管理列表
export function listDriver(query) {
  return request({
    url: "/driver/driver/list",
    method: "get",
    params: query,
  });
}

// 查询司机管理详细
export function getDriver(driverId) {
  return request({
    url: "/driver/driver/" + driverId,
    method: "get",
  });
}

// 新增司机管理
export function addDriver(data) {
  return request({
    url: "/driver/driver",
    method: "post",
    data: data,
  });
}
// 司机审核
export function updateDriverStatus(data) {
  return request({
    url: "/driver/driver/updateStatus",
    method: "post",
    data: data,
  });
}

// 修改司机管理
export function updateDriver(data) {
  return request({
    url: "/driver/driver",
    method: "put",
    data: data,
  });
}

// 删除司机管理
export function delDriver(driverId) {
  return request({
    url: "/driver/driver/" + driverId,
    method: "delete",
  });
}
